using System;
using System.Collections.Generic;
using System.IO;
namespace ServiceStack.Web
{
	public interface IResponse
	{
		object OriginalResponse
		{
			get;
		}
		IRequest Request
		{
			get;
		}
		int StatusCode
		{
			get;
			set;
		}
		string StatusDescription
		{
			get;
			set;
		}
		string ContentType
		{
			get;
			set;
		}
		Stream OutputStream
		{
			get;
		}
		object Dto
		{
			get;
			set;
		}
		bool UseBufferedStream
		{
			get;
			set;
		}
		bool IsClosed
		{
			get;
		}
		bool KeepAlive
		{
			get;
			set;
		}
		Dictionary<string, object> Items
		{
			get;
		}
		void AddHeader(string name, string value);
		void Redirect(string url);
		void Write(string text);
		void Close();
		void End();
		void Flush();
		void SetContentLength(long contentLength);
	}
}
